/**
 * 分组条件
 */
export const conditionTypes = {
  TextInput: [
    // {
    //   label: "包含",
    //   value: "IN",
    //   cmp: "MultipleSelect"
    // },
    {
      label: "模糊搜索",
      value: "LIKE",
      cmp: "TextInput"
    },
    {
      label: "等于",
      value: "EQ",
      cmp: "TextInput"
    }
  ],
  NumberInput: [
    {
      label: "等于",
      value: "EQ",
      cmp: "NumberInput"
    },
    {
      label: "小于",
      value: "LT",
      cmp: "NumberInput"
    },
    {
      label: "小于等于",
      value: "LE",
      cmp: "NumberInput"
    },
    {
      label: "大于",
      value: "GT",
      cmp: "NumberInput"
    },
    {
      label: "大于等于",
      value: "GE",
      cmp: "NumberInput"
    },
    {
      label: "x ＜ 值 ＜ Y",
      value: "GTLT",
      cmp: "NumberInputRange"
    },
    {
      label: "x ≤ 值 ＜ Y",
      value: "GELT",
      cmp: "NumberInputRange"
    },
    {
      label: "x ＜ 值 ≤ Y",
      value: "GTLE",
      cmp: "NumberInputRange"
    },
    {
      label: "x ≤ 值 ≤ Y",
      value: "GELE",
      cmp: "NumberInputRange"
    }
  ],
  DateTime: [
    {
      label: "等于",
      value: "EQ",
      cmp: "DateTime"
    },
    {
      label: "小于",
      value: "LT",
      cmp: "DateTime"
    },
    {
      label: "小于等于",
      value: "LE",
      cmp: "DateTime"
    },
    {
      label: "大于",
      value: "GT",
      cmp: "DateTime"
    },
    {
      label: "大于等于",
      value: "GE",
      cmp: "DateTime"
    },
    {
      label: "x ＜ 值 ＜ Y",
      value: "GTLT",
      cmp: "Datetimerange"
    },
    {
      label: "x ≤ 值 ＜ Y",
      value: "GELT",
      cmp: "Datetimerange"
    },
    {
      label: "x ＜ 值 ≤ Y",
      value: "GTLE",
      cmp: "Datetimerange"
    },
    {
      label: "x ≤ 值 ≤ Y",
      value: "GELE",
      cmp: "Datetimerange"
    }
  ],
  SelectInput: [
    // {
    //   label: "包含",
    //   value: "IN",
    //   cmp: "MultipleSelect"
    // },
    {
      label: "等于",
      value: "IN"
    }
  ],
  MultipleSelect: [
    {
      label: "包含",
      value: "IN"
    }
  ],
  CascaderInput: [
    {
      label: "等于",
      value: "EQ"
    }
  ]
};

// number DateTime
export const inputCompare = ["EQ", "LT", "LE", "GT", "GE"];
export const rangeCompare = ["GTLT", "GELT", "GTLE", "GELE"];

// text
export const textCompare = ["EQ", "LIKE"];
export const textCompareRange = ["IN"];
